import request from '@/utils/request'
import axios from 'axios'

export const loginInfoCheck = async payload => {
  // const { username, password } = payload;
  return request('/user/login', {
    method: 'POST',
    data: {
      ...payload
    }
  })
}

export const getLoginPicCode = async () => {
  return axios.get('http://cba.itlike.com/public/index.php?s=/api/captcha/image')
}